import gtk
from engine import Widgets

class UI(Widgets):
	_instance = None
	
	def __init__(self):
		Widgets.__init__(self)
		
		self.__logView = self.XMLtree.getWidget("LogView")
		self.__buffer = gtk.TextBuffer(None)
		self.__logView.set_buffer(self.__buffer)
		self.write("Ciao :-)")
		
	def write(self, message):
		self.__buffer.insert_at_cursor(message + "\n")